diff --git a/app/models/post.rb b/app/models/post.rb index aa07c888f..205170f13 100644 --- a/app/models/post.rb +++ b/app/models/post.rb @@ -24,7 +24,9 @@ class Post < ActiveRecord::Base t.add :author t.add :post_type t.add :image_url + t.add :object_url t.add :root + t.add :o_embed_cache end xml_attr :provider_display_name diff --git a/app/views/templates/activity-streams-photo.ujs b/app/views/templates/activity-streams-photo.ujs index 2d5fa3954..1c779bf95 100644 --- a/app/views/templates/activity-streams-photo.ujs +++ b/app/views/templates/activity-streams-photo.ujs @@ -1 +1,3 @@ - + + + diff --git a/app/views/templates/reshare.ujs b/app/views/templates/reshare.ujs index a17216e06..480df78da 100644 --- a/app/views/templates/reshare.ujs +++ b/app/views/templates/reshare.ujs @@ -1,4 +1,28 @@ -

-

this is a reshare

- <%= root.text %> -

+
+ + + + + +
+
+ + + <%= root.author.name %> + + + + - + + + +
+ + +

+ <%= root.text %> +

+ +
+
diff --git a/app/views/templates/status_message.ujs b/app/views/templates/status_message.ujs index a36daca39..6d7c40ef7 100644 --- a/app/views/templates/status_message.ujs +++ b/app/views/templates/status_message.ujs @@ -1,3 +1,7 @@

<%= text %>

+ +<% if(o_embed_cache) { %> + <%= o_embed_cache.posts.data.html %> +<% } %>