Skip to content

Commit

Permalink
fix(rss): author extract regex for bluesky
Browse files Browse the repository at this point in the history
  • Loading branch information
ZRunner committed Nov 30, 2024
1 parent 8005421 commit 7844f7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/rss/src/rss_bluesky.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ async def _get_feed(self, username: str, filter_config: FeedFilterConfig | None=
async def _parse_entry(self, entry: FeedParserDict, feed: FeedParserDict, url: str, channel: discord.TextChannel):
"Parse a feed entry to get the relevant information and return a RssMessage object"
full_author = feed["feed"]["title"]
author = re.search(r"^@[\w.-_]+ - (\S+)$", full_author).group(1)
author = re.search(r"^@[\w._-]+ - (\S+)$", full_author).group(1)
post_text = await get_text_from_entry(entry)
return RssMessage(
bot=self.bot,
Expand Down

0 comments on commit 7844f7f

Please sign in to comment.