hacky way to hide notices with object_type "activity"
remote favs will render like a copypasted queet otherwise
This commit is contained in:
parent
b06147728a
commit
b369982416
|
@ -1420,6 +1420,10 @@ function addToFeed(feed, after, extraClasses, isReply) {
|
|||
if(window.currentStream.substring(0,35) == 'qvitter/statuses/notifications.json'
|
||||
&& !isReply) {
|
||||
|
||||
// don't show any notices with object_type "activity"
|
||||
if(typeof obj.notice.uri != 'undefined' && obj.notice.uri.indexOf(':activity:') > -1) {
|
||||
return true;
|
||||
}
|
||||
|
||||
// only if this notification isn't already in stream
|
||||
if($('#stream-item-' + obj.id).length == 0) {
|
||||
|
@ -1577,6 +1581,11 @@ function addToFeed(feed, after, extraClasses, isReply) {
|
|||
// ordinary tweet
|
||||
else {
|
||||
|
||||
// don't show any notices with object_type "activity"
|
||||
if(typeof obj.uri != 'undefined' && obj.uri.indexOf(':activity:') > -1) {
|
||||
return true;
|
||||
}
|
||||
|
||||
// only if not already exist
|
||||
if($('#q-' + obj.id).length == 0) {
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user