Skip to content

Commit

Permalink
util.parse_mf2: use metaformats photo if h-card doesn't have one
Browse files Browse the repository at this point in the history
  • Loading branch information
snarfed committed Jan 9, 2024
1 parent aac85ce commit a2ed71b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion models.py
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,7 @@ def get_or_create(cls, id, actor=None, **props):
obj = Object(id=id)
obj.new = True

if set(props.keys()) & set(('our_as2', 'bsky', 'mf2', 'raw')):
if set(props.keys()) & set(('as2', 'bsky', 'mf2', 'raw')):
obj.clear()
obj.populate(**{
k: v for k, v in props.items()
Expand Down
2 changes: 1 addition & 1 deletion web.py
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ def webmention_interactive():
try:
webmention_external()
user = Web(id=util.domain_from_link(source, minimize=False))
flash(f'Updating fediverse profile from <a href="{user.web_url()}">{user.key.id()}</a>...')
flash(f'Updating profile from <a href="{user.web_url()}">{user.key.id()}</a>...')
return redirect(user.user_page_path(), code=302)

except HTTPException as e:
Expand Down

0 comments on commit a2ed71b

Please sign in to comment.