diff --git a/bookwyrm/models/activitypub_mixin.py b/bookwyrm/models/activitypub_mixin.py index 719debff6..c6ba249c5 100644 --- a/bookwyrm/models/activitypub_mixin.py +++ b/bookwyrm/models/activitypub_mixin.py @@ -359,6 +359,10 @@ class CollectionItemMixin(ActivitypubMixin): activity_serializer = activitypub.CollectionItem + def broadcast(self, activity, sender, software="bookwyrm"): + """ only send book collection updates to other bookwyrm instances """ + super().broadcast(activity, sender, software=software) + @property def privacy(self): """ inherit the privacy of the list, or direct if pending """ @@ -371,6 +375,9 @@ class CollectionItemMixin(ActivitypubMixin): def recipients(self): """ the owner of the list is a direct recipient """ collection_field = getattr(self, self.collection_field) + if collection_field.user.local: + # don't broadcast to yourself + return [] return [collection_field.user] def save(self, *args, broadcast=True, **kwargs): diff --git a/bookwyrm/static/css/bookwyrm.css b/bookwyrm/static/css/bookwyrm.css index e4bca2032..67eb1ebac 100644 --- a/bookwyrm/static/css/bookwyrm.css +++ b/bookwyrm/static/css/bookwyrm.css @@ -3,6 +3,12 @@ html { scroll-padding-top: 20%; } +body { + min-height: 100vh; + display: flex; + flex-direction: column; +} + .image { overflow: hidden; } diff --git a/bookwyrm/templates/layout.html b/bookwyrm/templates/layout.html index 7dc74d884..4ce7a7f8c 100644 --- a/bookwyrm/templates/layout.html +++ b/bookwyrm/templates/layout.html @@ -22,165 +22,169 @@ -