parsav  Diff

Differences From Artifact [f79f7a1ea9]:

To Artifact [4c6c4c1279]:


    16     16   		aux:pcompose(&co.srv.pool,'<a accesskey="a" class="button" href="/conf/profile?go=/@',actor.handle,'">alter</a>')
    17     17   	elseif co.aid ~= 0 then
    18     18   		if not relationship.rel.follow() then
    19     19   			aux:pcompose(&co.srv.pool,'<button accesskey="f" method="post" class="pos" name="act" value="follow">follow</button>')
    20     20   		elseif relationship.rel.follow() then
    21     21   			aux:pcompose(&co.srv.pool,'<button accesskey="f" method="post" class="neg" name="act" value="unfollow">unfollow</button>')
    22     22   		end
    23         -		aux:lpush('<a accesskey="h" class="button" href="/'):push(actor.xid,0):lpush('/chat">chat</a>')
           23  +		aux:lpush(' <a accesskey="h" class="button" href="/'):push(actor.xid,0):lpush('/chat">chat</a>')
    24     24   		if co.who.rights.powers:affect_users() and co.who:overpowers(actor) then
    25         -			aux:lpush('<a accesskey="n" class="button" href="/'):push(actor.xid,0):lpush('/ctl">control</a>')
           25  +			aux:lpush(' <a accesskey="n" class="button" href="/conf/users/'):shpush(actor.id):lpush('">control</a>')
    26     26   		end
    27     27   	else
    28         -		aux:pcompose(&co.srv.pool,'<a accesskey="f" class="button" href="/', actor.xid, '/follow">remote follow</a>')
           28  +		aux:pcompose(&co.srv.pool,' <a accesskey="f" class="button" href="/', actor.xid, '/follow">remote follow</a>')
    29     29   	end
    30     30   	var auxp = aux:finalize()
    31     31   	var timestr: int8[26] lib.osclock.ctime_r(&actor.knownsince, &timestr[0])
    32     32   
    33     33   	var strfbuf: int8[28*4]
    34     34   	var stats = co.srv:actor_stats(actor.id)
    35     35   		var sn_posts     = cs(lib.math.decstr_friendly(stats.posts, &strfbuf[ [strfbuf.type.N - 1] ]))
................................................................................
    73     73   		if co.who.rights.rank ~= 0 then
    74     74   			if co.who:outranks(actor) then
    75     75   				comments:lpush('<li style="--co:50">underling</li>')
    76     76   			elseif actor:outranks(co.who) then
    77     77   				comments:lpush('<li style="--co:-50">outranks you</li>')
    78     78   			end
    79     79   		end
           80  +	end
           81  +
           82  +	if relationship.rel.block() then
           83  +		comments:lpush('<li style="--co:80">blocked</li>')
           84  +	end
    80     85   
    81         -		if relationship.recip.follow() then
    82         -			comments:lpush('<li style="--co:30">follows you</li>')
    83         -		end
           86  +	if relationship.recip.follow() then
           87  +		comments:lpush('<li style="--co:30">follows you</li>')
    84     88   	end
    85     89   
    86     90   	var profile = data.view.profile {
    87     91   		nym = fullname;
    88     92   		bio = bio;
    89     93   		xid = cs(actor.xid);
    90     94   		avatar = cs(actor.avatar);