blocks you tooltip
This commit is contained in:
parent
949162b258
commit
8abbdeb3c0
|
@ -773,10 +773,14 @@ class QvitterPlugin extends Plugin {
|
||||||
$twitter_user['profile_background_color'] = Profile_prefs::getConfigData($profile, 'theme', 'backgroundcolor');
|
$twitter_user['profile_background_color'] = Profile_prefs::getConfigData($profile, 'theme', 'backgroundcolor');
|
||||||
$twitter_user['profile_banner_url'] = Profile_prefs::getConfigData($profile, 'qvitter', 'cover_photo');
|
$twitter_user['profile_banner_url'] = Profile_prefs::getConfigData($profile, 'qvitter', 'cover_photo');
|
||||||
|
|
||||||
// follows me?
|
|
||||||
if ($scoped) {
|
if ($scoped) {
|
||||||
$twitter_user['follows_you'] = $profile->isSubscribed($scoped);
|
// follows me?
|
||||||
}
|
$twitter_user['follows_you'] = $profile->isSubscribed($scoped);
|
||||||
|
|
||||||
|
// blocks me?
|
||||||
|
$twitter_user['blocks_you'] = $profile->hasBlocked($scoped);
|
||||||
|
}
|
||||||
|
|
||||||
// local user?
|
// local user?
|
||||||
$twitter_user['is_local'] = $profile->isLocal();
|
$twitter_user['is_local'] = $profile->isLocal();
|
||||||
|
|
|
@ -4335,6 +4335,15 @@ button.shorten:not(.disabled):active {
|
||||||
display:none;
|
display:none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.user-actions .blocks-you::before {
|
||||||
|
content:"\f05e";
|
||||||
|
color: #aaa;
|
||||||
|
cursor:default;
|
||||||
|
font-family: FontAwesome;
|
||||||
|
font-size: 20px;
|
||||||
|
line-height: 32px;
|
||||||
|
margin-right: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -311,15 +311,22 @@ function buildFollowBlockbutton(obj) {
|
||||||
if(typeof window.loggedIn.screen_name != 'undefined' // if logged in
|
if(typeof window.loggedIn.screen_name != 'undefined' // if logged in
|
||||||
&& window.loggedIn.id != obj.id) { // not if this is me
|
&& window.loggedIn.id != obj.id) { // not if this is me
|
||||||
if(!(obj.statusnet_profile_url.indexOf('/twitter.com/')>-1 && obj.following === false)) { // only unfollow twitter users
|
if(!(obj.statusnet_profile_url.indexOf('/twitter.com/')>-1 && obj.following === false)) { // only unfollow twitter users
|
||||||
var followButton = '<div class="user-actions">\
|
if(obj.blocks_you) {
|
||||||
<button data-follow-user-id="' + obj.id + '" data-follow-user="' + obj.statusnet_profile_url + '" type="button" class="qvitter-follow-button' + followingClass + blockingClass + '">\
|
var followButton = '<div class="user-actions">\
|
||||||
<span class="button-text follow-text"><i class="follow"></i>' + window.sL.userFollow + '</span>\
|
<div class="blocks-you" data-tooltip="' + window.sL.tooltipBlocksYou.replace('{username}','@' + obj.screen_name) + '"></div>\
|
||||||
<span class="button-text following-text">' + window.sL.userFollowing + '</span>\
|
</div>';
|
||||||
<span class="button-text unfollow-text">' + window.sL.userUnfollow + '</span>\
|
}
|
||||||
<span class="button-text blocking-text">' + window.sL.buttonBlocked + '</span>\
|
else {
|
||||||
<span class="button-text unblock-text">' + window.sL.buttonUnblock + '</span>\
|
var followButton = '<div class="user-actions">\
|
||||||
</button>\
|
<button data-follow-user-id="' + obj.id + '" data-follow-user="' + obj.statusnet_profile_url + '" type="button" class="qvitter-follow-button' + followingClass + blockingClass + '">\
|
||||||
</div>';
|
<span class="button-text follow-text"><i class="follow"></i>' + window.sL.userFollow + '</span>\
|
||||||
|
<span class="button-text following-text">' + window.sL.userFollowing + '</span>\
|
||||||
|
<span class="button-text unfollow-text">' + window.sL.userUnfollow + '</span>\
|
||||||
|
<span class="button-text blocking-text">' + window.sL.buttonBlocked + '</span>\
|
||||||
|
<span class="button-text unblock-text">' + window.sL.buttonUnblock + '</span>\
|
||||||
|
</button>\
|
||||||
|
</div>';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -169,5 +169,6 @@
|
||||||
"buttonUnblock":"Unblock",
|
"buttonUnblock":"Unblock",
|
||||||
"failedBlockingUser":"Failed to block the user.",
|
"failedBlockingUser":"Failed to block the user.",
|
||||||
"failedUnblockingUser":"Failed to unblock the user.",
|
"failedUnblockingUser":"Failed to unblock the user.",
|
||||||
"unblockUser": "Unblock {username}"
|
"unblockUser": "Unblock {username}",
|
||||||
|
"tooltipBlocksYou":"You are blocked from following {username}."
|
||||||
}
|
}
|
||||||
|
|
|
@ -169,5 +169,6 @@
|
||||||
"buttonUnblock":"Unblock",
|
"buttonUnblock":"Unblock",
|
||||||
"failedBlockingUser":"Failed to block the user.",
|
"failedBlockingUser":"Failed to block the user.",
|
||||||
"failedUnblockingUser":"Failed to unblock the user.",
|
"failedUnblockingUser":"Failed to unblock the user.",
|
||||||
"unblockUser": "Unblock {username}"
|
"unblockUser": "Unblock {username}",
|
||||||
|
"tooltipBlocksYou":"You are blocked from following {username}."
|
||||||
}
|
}
|
||||||
|
|
|
@ -169,5 +169,6 @@
|
||||||
"buttonUnblock":"Unblock",
|
"buttonUnblock":"Unblock",
|
||||||
"failedBlockingUser":"Failed to block the user.",
|
"failedBlockingUser":"Failed to block the user.",
|
||||||
"failedUnblockingUser":"Failed to unblock the user.",
|
"failedUnblockingUser":"Failed to unblock the user.",
|
||||||
"unblockUser": "Unblock {username}"
|
"unblockUser": "Unblock {username}",
|
||||||
|
"tooltipBlocksYou":"You are blocked from following {username}."
|
||||||
}
|
}
|
||||||
|
|
|
@ -169,5 +169,6 @@
|
||||||
"buttonUnblock":"Unblock",
|
"buttonUnblock":"Unblock",
|
||||||
"failedBlockingUser":"Failed to block the user.",
|
"failedBlockingUser":"Failed to block the user.",
|
||||||
"failedUnblockingUser":"Failed to unblock the user.",
|
"failedUnblockingUser":"Failed to unblock the user.",
|
||||||
"unblockUser": "Unblock {username}"
|
"unblockUser": "Unblock {username}",
|
||||||
|
"tooltipBlocksYou":"You are blocked from following {username}."
|
||||||
}
|
}
|
||||||
|
|
|
@ -169,5 +169,6 @@
|
||||||
"buttonUnblock":"Unblock",
|
"buttonUnblock":"Unblock",
|
||||||
"failedBlockingUser":"Failed to block the user.",
|
"failedBlockingUser":"Failed to block the user.",
|
||||||
"failedUnblockingUser":"Failed to unblock the user.",
|
"failedUnblockingUser":"Failed to unblock the user.",
|
||||||
"unblockUser": "Unblock {username}"
|
"unblockUser": "Unblock {username}",
|
||||||
|
"tooltipBlocksYou":"You are blocked from following {username}."
|
||||||
}
|
}
|
||||||
|
|
|
@ -169,5 +169,6 @@
|
||||||
"buttonUnblock":"Unblock",
|
"buttonUnblock":"Unblock",
|
||||||
"failedBlockingUser":"Failed to block the user.",
|
"failedBlockingUser":"Failed to block the user.",
|
||||||
"failedUnblockingUser":"Failed to unblock the user.",
|
"failedUnblockingUser":"Failed to unblock the user.",
|
||||||
"unblockUser": "Unblock {username}"
|
"unblockUser": "Unblock {username}",
|
||||||
|
"tooltipBlocksYou":"You are blocked from following {username}."
|
||||||
}
|
}
|
||||||
|
|
|
@ -169,5 +169,6 @@
|
||||||
"buttonUnblock":"Unblock",
|
"buttonUnblock":"Unblock",
|
||||||
"failedBlockingUser":"Failed to block the user.",
|
"failedBlockingUser":"Failed to block the user.",
|
||||||
"failedUnblockingUser":"Failed to unblock the user.",
|
"failedUnblockingUser":"Failed to unblock the user.",
|
||||||
"unblockUser": "Unblock {username}"
|
"unblockUser": "Unblock {username}",
|
||||||
|
"tooltipBlocksYou":"You are blocked from following {username}."
|
||||||
}
|
}
|
||||||
|
|
|
@ -169,5 +169,6 @@
|
||||||
"buttonUnblock":"Unblock",
|
"buttonUnblock":"Unblock",
|
||||||
"failedBlockingUser":"Failed to block the user.",
|
"failedBlockingUser":"Failed to block the user.",
|
||||||
"failedUnblockingUser":"Failed to unblock the user.",
|
"failedUnblockingUser":"Failed to unblock the user.",
|
||||||
"unblockUser": "Unblock {username}"
|
"unblockUser": "Unblock {username}",
|
||||||
|
"tooltipBlocksYou":"You are blocked from following {username}."
|
||||||
}
|
}
|
||||||
|
|
|
@ -169,5 +169,6 @@
|
||||||
"buttonUnblock":"Unblock",
|
"buttonUnblock":"Unblock",
|
||||||
"failedBlockingUser":"Failed to block the user.",
|
"failedBlockingUser":"Failed to block the user.",
|
||||||
"failedUnblockingUser":"Failed to unblock the user.",
|
"failedUnblockingUser":"Failed to unblock the user.",
|
||||||
"unblockUser": "Unblock {username}"
|
"unblockUser": "Unblock {username}",
|
||||||
|
"tooltipBlocksYou":"You are blocked from following {username}."
|
||||||
}
|
}
|
||||||
|
|
|
@ -169,5 +169,6 @@
|
||||||
"buttonUnblock":"Unblock",
|
"buttonUnblock":"Unblock",
|
||||||
"failedBlockingUser":"Failed to block the user.",
|
"failedBlockingUser":"Failed to block the user.",
|
||||||
"failedUnblockingUser":"Failed to unblock the user.",
|
"failedUnblockingUser":"Failed to unblock the user.",
|
||||||
"unblockUser": "Unblock {username}"
|
"unblockUser": "Unblock {username}",
|
||||||
|
"tooltipBlocksYou":"You are blocked from following {username}."
|
||||||
}
|
}
|
||||||
|
|
|
@ -169,5 +169,6 @@
|
||||||
"buttonUnblock":"Unblock",
|
"buttonUnblock":"Unblock",
|
||||||
"failedBlockingUser":"Failed to block the user.",
|
"failedBlockingUser":"Failed to block the user.",
|
||||||
"failedUnblockingUser":"Failed to unblock the user.",
|
"failedUnblockingUser":"Failed to unblock the user.",
|
||||||
"unblockUser": "Unblock {username}"
|
"unblockUser": "Unblock {username}",
|
||||||
|
"tooltipBlocksYou":"You are blocked from following {username}."
|
||||||
}
|
}
|
||||||
|
|
|
@ -169,5 +169,6 @@
|
||||||
"buttonUnblock":"Unblock",
|
"buttonUnblock":"Unblock",
|
||||||
"failedBlockingUser":"Failed to block the user.",
|
"failedBlockingUser":"Failed to block the user.",
|
||||||
"failedUnblockingUser":"Failed to unblock the user.",
|
"failedUnblockingUser":"Failed to unblock the user.",
|
||||||
"unblockUser": "Unblock {username}"
|
"unblockUser": "Unblock {username}",
|
||||||
|
"tooltipBlocksYou":"You are blocked from following {username}."
|
||||||
}
|
}
|
||||||
|
|
|
@ -169,5 +169,6 @@
|
||||||
"buttonUnblock":"Unblock",
|
"buttonUnblock":"Unblock",
|
||||||
"failedBlockingUser":"Failed to block the user.",
|
"failedBlockingUser":"Failed to block the user.",
|
||||||
"failedUnblockingUser":"Failed to unblock the user.",
|
"failedUnblockingUser":"Failed to unblock the user.",
|
||||||
"unblockUser": "Unblock {username}"
|
"unblockUser": "Unblock {username}",
|
||||||
|
"tooltipBlocksYou":"You are blocked from following {username}."
|
||||||
}
|
}
|
||||||
|
|
|
@ -169,5 +169,6 @@
|
||||||
"buttonUnblock":"Unblock",
|
"buttonUnblock":"Unblock",
|
||||||
"failedBlockingUser":"Failed to block the user.",
|
"failedBlockingUser":"Failed to block the user.",
|
||||||
"failedUnblockingUser":"Failed to unblock the user.",
|
"failedUnblockingUser":"Failed to unblock the user.",
|
||||||
"unblockUser": "Unblock {username}"
|
"unblockUser": "Unblock {username}",
|
||||||
|
"tooltipBlocksYou":"You are blocked from following {username}."
|
||||||
}
|
}
|
||||||
|
|
|
@ -169,5 +169,6 @@
|
||||||
"buttonUnblock":"Unblock",
|
"buttonUnblock":"Unblock",
|
||||||
"failedBlockingUser":"Failed to block the user.",
|
"failedBlockingUser":"Failed to block the user.",
|
||||||
"failedUnblockingUser":"Failed to unblock the user.",
|
"failedUnblockingUser":"Failed to unblock the user.",
|
||||||
"unblockUser": "Unblock {username}"
|
"unblockUser": "Unblock {username}",
|
||||||
|
"tooltipBlocksYou":"You are blocked from following {username}."
|
||||||
}
|
}
|
||||||
|
|
|
@ -169,5 +169,6 @@
|
||||||
"buttonUnblock":"Unblock",
|
"buttonUnblock":"Unblock",
|
||||||
"failedBlockingUser":"Failed to block the user.",
|
"failedBlockingUser":"Failed to block the user.",
|
||||||
"failedUnblockingUser":"Failed to unblock the user.",
|
"failedUnblockingUser":"Failed to unblock the user.",
|
||||||
"unblockUser": "Unblock {username}"
|
"unblockUser": "Unblock {username}",
|
||||||
|
"tooltipBlocksYou":"You are blocked from following {username}."
|
||||||
}
|
}
|
||||||
|
|
|
@ -169,5 +169,6 @@
|
||||||
"buttonUnblock":"Unblock",
|
"buttonUnblock":"Unblock",
|
||||||
"failedBlockingUser":"Failed to block the user.",
|
"failedBlockingUser":"Failed to block the user.",
|
||||||
"failedUnblockingUser":"Failed to unblock the user.",
|
"failedUnblockingUser":"Failed to unblock the user.",
|
||||||
"unblockUser": "Unblock {username}"
|
"unblockUser": "Unblock {username}",
|
||||||
|
"tooltipBlocksYou":"You are blocked from following {username}."
|
||||||
}
|
}
|
||||||
|
|
|
@ -169,5 +169,6 @@
|
||||||
"buttonUnblock":"Unblock",
|
"buttonUnblock":"Unblock",
|
||||||
"failedBlockingUser":"Failed to block the user.",
|
"failedBlockingUser":"Failed to block the user.",
|
||||||
"failedUnblockingUser":"Failed to unblock the user.",
|
"failedUnblockingUser":"Failed to unblock the user.",
|
||||||
"unblockUser": "Unblock {username}"
|
"unblockUser": "Unblock {username}",
|
||||||
|
"tooltipBlocksYou":"You are blocked from following {username}."
|
||||||
}
|
}
|
||||||
|
|
|
@ -169,5 +169,6 @@
|
||||||
"buttonUnblock":"Unblock",
|
"buttonUnblock":"Unblock",
|
||||||
"failedBlockingUser":"Failed to block the user.",
|
"failedBlockingUser":"Failed to block the user.",
|
||||||
"failedUnblockingUser":"Failed to unblock the user.",
|
"failedUnblockingUser":"Failed to unblock the user.",
|
||||||
"unblockUser": "Unblock {username}"
|
"unblockUser": "Unblock {username}",
|
||||||
|
"tooltipBlocksYou":"You are blocked from following {username}."
|
||||||
}
|
}
|
||||||
|
|
|
@ -169,5 +169,6 @@
|
||||||
"buttonUnblock":"Unblock",
|
"buttonUnblock":"Unblock",
|
||||||
"failedBlockingUser":"Failed to block the user.",
|
"failedBlockingUser":"Failed to block the user.",
|
||||||
"failedUnblockingUser":"Failed to unblock the user.",
|
"failedUnblockingUser":"Failed to unblock the user.",
|
||||||
"unblockUser": "Unblock {username}"
|
"unblockUser": "Unblock {username}",
|
||||||
|
"tooltipBlocksYou":"You are blocked from following {username}."
|
||||||
}
|
}
|
||||||
|
|
|
@ -169,5 +169,6 @@
|
||||||
"buttonUnblock":"Unblock",
|
"buttonUnblock":"Unblock",
|
||||||
"failedBlockingUser":"Failed to block the user.",
|
"failedBlockingUser":"Failed to block the user.",
|
||||||
"failedUnblockingUser":"Failed to unblock the user.",
|
"failedUnblockingUser":"Failed to unblock the user.",
|
||||||
"unblockUser": "Unblock {username}"
|
"unblockUser": "Unblock {username}",
|
||||||
|
"tooltipBlocksYou":"You are blocked from following {username}."
|
||||||
}
|
}
|
||||||
|
|
|
@ -167,5 +167,6 @@
|
||||||
"buttonUnblock":"Unblock",
|
"buttonUnblock":"Unblock",
|
||||||
"failedBlockingUser":"Failed to block the user.",
|
"failedBlockingUser":"Failed to block the user.",
|
||||||
"failedUnblockingUser":"Failed to unblock the user.",
|
"failedUnblockingUser":"Failed to unblock the user.",
|
||||||
"unblockUser": "Unblock {username}"
|
"unblockUser": "Unblock {username}",
|
||||||
|
"tooltipBlocksYou":"You are blocked from following {username}."
|
||||||
}
|
}
|
||||||
|
|
|
@ -169,5 +169,6 @@
|
||||||
"buttonUnblock":"Unblock",
|
"buttonUnblock":"Unblock",
|
||||||
"failedBlockingUser":"Failed to block the user.",
|
"failedBlockingUser":"Failed to block the user.",
|
||||||
"failedUnblockingUser":"Failed to unblock the user.",
|
"failedUnblockingUser":"Failed to unblock the user.",
|
||||||
"unblockUser": "Unblock {username}"
|
"unblockUser": "Unblock {username}",
|
||||||
|
"tooltipBlocksYou":"You are blocked from following {username}."
|
||||||
}
|
}
|
||||||
|
|
|
@ -169,5 +169,6 @@
|
||||||
"buttonUnblock":"Avblockera",
|
"buttonUnblock":"Avblockera",
|
||||||
"failedBlockingUser":"Misslyckades med att blockera användaren.",
|
"failedBlockingUser":"Misslyckades med att blockera användaren.",
|
||||||
"failedUnblockingUser":"Misslyckades med att avblockera användaren.",
|
"failedUnblockingUser":"Misslyckades med att avblockera användaren.",
|
||||||
"unblockUser": "Avblockera {username}"
|
"unblockUser": "Avblockera {username}",
|
||||||
|
"tooltipBlocksYou":"Du är blockerad från att följa {username}."
|
||||||
}
|
}
|
||||||
|
|
|
@ -168,5 +168,6 @@
|
||||||
"buttonUnblock":"Unblock",
|
"buttonUnblock":"Unblock",
|
||||||
"failedBlockingUser":"Failed to block the user.",
|
"failedBlockingUser":"Failed to block the user.",
|
||||||
"failedUnblockingUser":"Failed to unblock the user.",
|
"failedUnblockingUser":"Failed to unblock the user.",
|
||||||
"unblockUser": "Unblock {username}"
|
"unblockUser": "Unblock {username}",
|
||||||
|
"tooltipBlocksYou":"You are blocked from following {username}."
|
||||||
}
|
}
|
||||||
|
|
|
@ -168,5 +168,6 @@
|
||||||
"buttonUnblock":"Unblock",
|
"buttonUnblock":"Unblock",
|
||||||
"failedBlockingUser":"Failed to block the user.",
|
"failedBlockingUser":"Failed to block the user.",
|
||||||
"failedUnblockingUser":"Failed to unblock the user.",
|
"failedUnblockingUser":"Failed to unblock the user.",
|
||||||
"unblockUser": "Unblock {username}"
|
"unblockUser": "Unblock {username}",
|
||||||
|
"tooltipBlocksYou":"You are blocked from following {username}."
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user