mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-25 19:11:09 +00:00
Fix detection of unlisted
posts (#3258)
Merged from dato/fix_unlisted_set_from_activity.
This commit is contained in:
commit
699d637bae
1 changed files with 2 additions and 2 deletions
|
@ -260,12 +260,12 @@ class PrivacyField(ActivitypubFieldMixin, models.CharField):
|
||||||
|
|
||||||
if to == [self.public]:
|
if to == [self.public]:
|
||||||
setattr(instance, self.name, "public")
|
setattr(instance, self.name, "public")
|
||||||
|
elif self.public in cc:
|
||||||
|
setattr(instance, self.name, "unlisted")
|
||||||
elif to == [user.followers_url]:
|
elif to == [user.followers_url]:
|
||||||
setattr(instance, self.name, "followers")
|
setattr(instance, self.name, "followers")
|
||||||
elif cc == []:
|
elif cc == []:
|
||||||
setattr(instance, self.name, "direct")
|
setattr(instance, self.name, "direct")
|
||||||
elif self.public in cc:
|
|
||||||
setattr(instance, self.name, "unlisted")
|
|
||||||
else:
|
else:
|
||||||
setattr(instance, self.name, "followers")
|
setattr(instance, self.name, "followers")
|
||||||
return original == getattr(instance, self.name)
|
return original == getattr(instance, self.name)
|
||||||
|
|
Loading…
Reference in a new issue