forked from GNUsocial/gnu-social
Initial move towards microformats2
No validation has been attempted yet. Lots of changes left. This is visibly not (very) different from the previous CSS layout. But some simplifications have been made. Might cause issues with local changes to themes and CSS. Also maybe javascript which depends on certain legacy microformats elements. The move to microformats2 is motivated by the announcement that all microformats should be migrated to version 2, as of 2014-06-20 at: http://microformats.org/2014/06/20/microformats-org-turns-9-upgrade-to-microformats2
This commit is contained in:
@@ -863,7 +863,7 @@ var SN = { // StatusNet
|
||||
var m = $(this);
|
||||
m.addClass(SN.C.S.Processing);
|
||||
$.get(m.attr('href'), {ajax: 1}, function (data) {
|
||||
m.parent('.entry-content').html($(data).find('#attachment_view .entry-content').html());
|
||||
m.parent('.e-content').html($(data).find('#attachment_view .e-content').html());
|
||||
});
|
||||
|
||||
return false;
|
||||
@@ -1361,7 +1361,7 @@ var SN = { // StatusNet
|
||||
|
||||
var profileLink = $('#nav_profile a').attr('href');
|
||||
if (profileLink) {
|
||||
var authorUrl = $(notice).find('.vcard.author a.url').attr('href');
|
||||
var authorUrl = $(notice).find('.h-card.u-url').attr('href');
|
||||
if (authorUrl == profileLink) {
|
||||
if (action == 'all' || action == 'showstream') {
|
||||
// Posts always show on your own friends and profile streams.
|
||||
|
Reference in New Issue
Block a user