Skip to content

Commit

Permalink
Fix #135: reduce cases of implied photo according to spec change
Browse files Browse the repository at this point in the history
  • Loading branch information
sknebel committed Oct 2, 2018
1 parent a4cffab commit 3a534cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mf2py/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def handle_microformat(root_class_names, el, value_property=None,
if "name" not in properties and parsed_types_aggregation.isdisjoint("peh"):
properties["name"] = [implied_properties.name(el, base_url=self.__url__)]

if "photo" not in properties:
if "photo" not in properties and parsed_types_aggregation.isdisjoint("uh"):
x = implied_properties.photo(el, self.dict_class, self.__img_with_alt__, base_url=self.__url__)
if x is not None:
properties["photo"] = [x]
Expand Down

0 comments on commit 3a534cd

Please # to comment.