Skip to content
Extraits de code Groupes Projets
Valider e7095ba7 rédigé par danielgrippi's avatar danielgrippi
Parcourir les fichiers

Tests now pass, stream_element needs de-hacking

parent c8e31825
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -32,5 +32,7 @@ class ActivityStreams::Photo < Post
:actor_url => json["actor"]["url"]
)
end
def activity_streams?; true; end
end
......@@ -23,7 +23,7 @@
= person_link(post.author, :class => 'author')
%time.time.timeago{:datetime => post.created_at, :integer => time_for_sort(post).to_i}
- if post.model.instance_of?(ActivityStreams::Photo)
- if post.respond_to?(:activity_streams?)
= image_tag post.image_url
- else
= render 'status_messages/status_message', :post => post, :photos => post.photos
......
......@@ -9,7 +9,7 @@
.from
= person_link(post.author)
- if post.model.instance_of?(ActivityStreams::Photo)
- if post.respond_to?(:activity_streams?)
= image_tag post.image_url
- else
= render 'status_messages/status_message', :post => post, :photos => post.photos
......
......@@ -140,6 +140,10 @@ describe UsersController do
end
describe '#generate_new_token' do
before do
AppConfig[:admins] = [@user.username]
end
it 'generates a new token for the current user' do
lambda {
get 'generate_new_token'
......
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