diff --git a/app/community/routes.py b/app/community/routes.py index 852e96a8..d8304bf8 100644 --- a/app/community/routes.py +++ b/app/community/routes.py @@ -380,9 +380,9 @@ def add_post(actor): '@context': default_context() } if post.type == POST_TYPE_LINK: - page.attachment = [{'href': post.url, 'type': 'Link'}] + page['attachment'] = [{'href': post.url, 'type': 'Link'}] if post.image_id: - page.image = [{'type': 'Image', 'url': post.image.source_url}] + page['image'] = [{'type': 'Image', 'url': post.image.source_url}] if not community.is_local(): # this is a remote community - send the post to the instance that hosts it success = post_request(community.ap_inbox_url, create, current_user.private_key, current_user.ap_profile_id + '#main-key') diff --git a/app/static/structure.css b/app/static/structure.css index 50377bcd..dbb41bd2 100644 --- a/app/static/structure.css +++ b/app/static/structure.css @@ -782,4 +782,8 @@ fieldset legend { } } +.mobile_create_post { + float: right; +} + /*# sourceMappingURL=structure.css.map */ diff --git a/app/static/structure.scss b/app/static/structure.scss index 7e44d251..fdd2ef4d 100644 --- a/app/static/structure.scss +++ b/app/static/structure.scss @@ -458,3 +458,7 @@ fieldset { max-width: 1180px; } } + +.mobile_create_post { + float: right; +} \ No newline at end of file diff --git a/app/templates/community/_community_nav.html b/app/templates/community/_community_nav.html index 11d2780c..2a82c9ef 100644 --- a/app/templates/community/_community_nav.html +++ b/app/templates/community/_community_nav.html @@ -1,3 +1,6 @@ +
+ {{ _('Create post') }} +
{{ _('Hot') }}