Skip to content

Commit

Permalink
Omit URL previews with no title
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Feb 16, 2022
1 parent 1b3e5f3 commit bafd1f7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mautrix_googlechat/formatter/from_googlechat.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ async def gc_previews_to_beeper(
not ann.HasField("url_metadata")
or ann.url_metadata.should_not_render
or not ann.length
or not ann.url_metadata.title
):
continue
meta = ann.url_metadata
Expand Down

0 comments on commit bafd1f7

Please sign in to comment.