forked from GNUsocial/gnu-social
Adds notice author's name to @title in Realtime response
This commit is contained in:
parent
efb39347b2
commit
b68a21d4f7
@ -132,11 +132,11 @@ RealtimeUpdate = {
|
|||||||
user = data['user'];
|
user = data['user'];
|
||||||
html = data['html'].replace(/</g,'<').replace(/>/g,'>').replace(/"/g,'"').replace(/&/g,'&');
|
html = data['html'].replace(/</g,'<').replace(/>/g,'>').replace(/"/g,'"').replace(/&/g,'&');
|
||||||
source = data['source'].replace(/</g,'<').replace(/>/g,'>').replace(/"/g,'"').replace(/&/g,'&');
|
source = data['source'].replace(/</g,'<').replace(/>/g,'>').replace(/"/g,'"').replace(/&/g,'&');
|
||||||
|
console.log(data);
|
||||||
ni = "<li class=\"hentry notice\" id=\"notice-"+unique+"\">"+
|
ni = "<li class=\"hentry notice\" id=\"notice-"+unique+"\">"+
|
||||||
"<div class=\"entry-title\">"+
|
"<div class=\"entry-title\">"+
|
||||||
"<span class=\"vcard author\">"+
|
"<span class=\"vcard author\">"+
|
||||||
"<a href=\""+user['profile_url']+"\" class=\"url\">"+
|
"<a href=\""+user['profile_url']+"\" class=\"url\" title=\""+user['name']+"\">"+
|
||||||
"<img src=\""+user['profile_image_url']+"\" class=\"avatar photo\" width=\"48\" height=\"48\" alt=\""+user['screen_name']+"\"/>"+
|
"<img src=\""+user['profile_image_url']+"\" class=\"avatar photo\" width=\"48\" height=\"48\" alt=\""+user['screen_name']+"\"/>"+
|
||||||
"<span class=\"nickname fn\">"+user['screen_name']+"</span>"+
|
"<span class=\"nickname fn\">"+user['screen_name']+"</span>"+
|
||||||
"</a>"+
|
"</a>"+
|
||||||
|
Loading…
Reference in New Issue
Block a user