update comment to identify bug

This commit is contained in:
Hugh Rundle 2023-04-11 18:57:55 +10:00
parent 279fa3851b
commit c450947eee

View file

@ -137,9 +137,9 @@ class Status(OrderedCollectionPageMixin, BookWyrmModel):
if activity.tag == MISSING or activity.tag is None:
return True
# BUG: this fixes the TypeError but we still don't get any notifs
# and DMs are dropped
tags = activity.tag if type(activity.tag) == list else [activity.tag]
# BUG: this fixes the TypeError but if there is only one user mentioned
# we still don't get any notifs and DMs are dropped.
tags = activity.tag if type(activity.tag) == list else [ activity.tag ]
user_model = apps.get_model("bookwyrm.User", require_ready=True)
for tag in tags:
if (