No title property in objects (name instead). Summary can be HTML.
This commit is contained in:
parent
62a79de454
commit
0c42dbb2f8
|
@ -130,7 +130,7 @@
|
|||
<p>Cc: <ul id="activity-object-cc" class="recipient-list"></ul></p>
|
||||
</details>
|
||||
<section class="activity-object-content">
|
||||
<h5><span id="activity-object-title"></span></h5>
|
||||
<h5><span id="activity-object-name"></span></h5>
|
||||
<em><p id="activity-object-summary"><p></em>
|
||||
<p id="activity-object-content"><p>
|
||||
</section>
|
||||
|
|
|
@ -242,8 +242,8 @@ const UI = {
|
|||
return '<li class="actor-display">' + Render.audienceActor(element) + '</li>'
|
||||
}).join('')
|
||||
Elem('activity-object-code-source').innerText = JSON.stringify(activity.object.raw, null, 1)
|
||||
Elem('activity-object-title').innerText = activity.object.title
|
||||
Elem('activity-object-summary').innerText = activity.object.summary
|
||||
Elem('activity-object-name').innerText = activity.object.name
|
||||
Elem('activity-object-summary').innerHTML = activity.object.summary
|
||||
Elem('activity-object-content').innerHTML = activity.object.content
|
||||
// If there are attachments on the object, display them
|
||||
Elem('activity-object-attachments-number').innerText = activity.object.attachments.length
|
||||
|
|
|
@ -7,7 +7,7 @@ const ASObject = function(raw_object) {
|
|||
this.id = raw_object.id
|
||||
this.type = raw_object.type
|
||||
this.published = raw_object.published ? new Date(raw_object.published) : undefined
|
||||
this.title = raw_object.title ? raw_object.title : ''
|
||||
this.name = raw_object.name ? raw_object.name : ''
|
||||
this.summary = raw_object.summary ? raw_object.summary : ''
|
||||
this.content = raw_object.content ? raw_object.content : ''
|
||||
// actor, to, cc are filled in loadActors
|
||||
|
|
Loading…
Reference in New Issue