Skip to content
Extraits de code Groupes Projets
Valider 83db0a8f rédigé par Benjamin Neff's avatar Benjamin Neff
Parcourir les fichiers

remove activity_streams, because it was always false ...

parent ecd13fc7
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -129,10 +129,6 @@ class Post < ActiveRecord::Base
new(params.to_hash.stringify_keys.slice(*column_names, "author"))
end
def activity_streams?
false
end
def comment_email_subject
I18n.t('notifier.a_post_you_shared')
end
......
......@@ -13,9 +13,8 @@
- unless post.is_a?(Reshare)
= render "shared/nsfw_shield", post: post
- if !post.activity_streams?
.nsfw-hidden
= render "status_messages/status_message", post: post, photos: post.photos
.nsfw-hidden
= render "status_messages/status_message", post: post, photos: post.photos
- else
.content
= t(".deleted")
......
......@@ -11,6 +11,3 @@
.additional_photo_count
= "+ #{post.photos.size-1}"
= image_tag post.photos.first.url(:thumb_large), class: "stream-photo big-stream-photo"
- elsif post.activity_streams?
= image_tag post.image_url
......@@ -20,9 +20,7 @@
= link_to(post_path(post)) do
= timeago(post.created_at)
%span.via
- if post.activity_streams?
= t('shared.stream_element.via', link: link_to("#{post.provider_display_name}", post.actor_url)).html_safe
- elsif post.provider_display_name == 'mobile'
- if post.provider_display_name == "mobile"
= t('shared.stream_element.via_mobile', link: nil)
&ndash;
%span.scope_scope
......
......@@ -11,8 +11,6 @@
.additional_photo_count
= "+ #{post.photos.size-1}"
= image_tag post.first_photo_url(:thumb_large), :class => "stream-photo big-stream-photo"
- elsif post.activity_streams?
= image_tag post.image_url
%div{:class => direction_for(post.text)}
!= post.message.markdownified
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter