parsav  Check-in [8d8ab01573]

Overview
Comment:unfuck last commit
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 8d8ab0157391c8465b23f3e9878ce0edce35ea98e2dadd780eb3da4fd9345a95
User & Date: lexi on 2021-01-06 22:31:15
Other Links: manifest | tags
Context
2021-01-07
07:35
tentative beginnings of upload + media management system check-in: f4c6e72a22 user: lexi tags: trunk
2021-01-06
22:31
unfuck last commit check-in: 8d8ab01573 user: lexi tags: trunk
22:18
notifications work now check-in: 9cc5d48cd8 user: lexi tags: trunk
Changes

Modified render/tweet.t from [0700e85db2] to [18c58bf27c].

65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
		if not parent then
			lib.bail('schema integrity violation - could not match post to parent')
		end
		var pauth = co.srv:actor_fetch_uid(parent(0).author) defer pauth:free()
		var pidbuf: int8[lib.math.shorthand.maxlen]
		var pidlen = lib.math.shorthand.gen(p.parent, pidbuf)
		var pa: lib.str.acc pa:init(128)
		pa:lpush('<small>in reply to <a class="username" href="'):push(&pidbuf[0],pidlen):lpush('">')
		lib.render.nym(pauth.ptr,0,&pa,true)
		pa:lpush('</a></small>')
		tpl.extra = pa:finalize()
	end
	if p.rts + p.likes > 0 then
		var s: lib.str.acc s:init(128)
		s:lpush('<div class="stats">')







|







65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
		if not parent then
			lib.bail('schema integrity violation - could not match post to parent')
		end
		var pauth = co.srv:actor_fetch_uid(parent(0).author) defer pauth:free()
		var pidbuf: int8[lib.math.shorthand.maxlen]
		var pidlen = lib.math.shorthand.gen(p.parent, pidbuf)
		var pa: lib.str.acc pa:init(128)
		pa:lpush('<small>in reply to <a class="username" href="/post/'):push(&pidbuf[0],pidlen):lpush('">')
		lib.render.nym(pauth.ptr,0,&pa,true)
		pa:lpush('</a></small>')
		tpl.extra = pa:finalize()
	end
	if p.rts + p.likes > 0 then
		var s: lib.str.acc s:init(128)
		s:lpush('<div class="stats">')

Modified static/style.scss from [fa60ad7c82] to [37c2876b01].

528
529
530
531
532
533
534








535
536
537
538
539
540
541
		text-decoration: none;
		padding: 0.1in;
		padding-left: 0.15in;
		background: linear-gradient(to right, tone(-55%), transparent);
	}
	>.content {
		grid-column: 2/5; grid-row: 1/2;








		padding: 0.2in;
		@extend %serif;
		font-size: 110%;
		text-align: justify;
		color: tone(25%);
	}
	> a[href].permalink {







>
>
>
>
>
>
>
>







528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
		text-decoration: none;
		padding: 0.1in;
		padding-left: 0.15in;
		background: linear-gradient(to right, tone(-55%), transparent);
	}
	>.content {
		grid-column: 2/5; grid-row: 1/2;
		> small {
			@extend %sans;
			display: block;
			margin-top: -0.1in;
			font-size: 75%;
			font-style: italic;
			opacity: 80%;
		}
		padding: 0.2in;
		@extend %serif;
		font-size: 110%;
		text-align: justify;
		color: tone(25%);
	}
	> a[href].permalink {