parsav  Diff

Differences From Artifact [7cc6c4467d]:

To Artifact [db020952e6]:


10
11
12
13
14
15
16








17
18
19
20
21
22
23
24
25
26
27
28
29
	id: uint64
}

terra m.eval(expr: lib.str.t, agent: m.agent)

end









terra lib.store.post:save(ctupdate: bool)
-- this post handles the messy details of registering a post's
-- circles and actors, and increments the edit-count if ctupdate
-- is true, which is should be in almost all cases.
	if ctupdate then
		self.chgcount = self.chgcount + 1
		self.edited = lib.osclock.time(nil)
	end
	-- TODO extract mentions from body, circles from acl
	self.source:post_save(self)
end

return m







>
>
>
>
>
>
>
>

|
|
|




|




10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
	id: uint64
}

terra m.eval(expr: lib.str.t, agent: m.agent)

end


terra lib.store.post:comp()
 -- TODO extract mentions from body, circles from acl
	self.mentions = [lib.mem.ptr(uint64)].null()
	self.circles = [lib.mem.ptr(uint64)].null()
	self.convoheaduri = nil
end

terra lib.store.post:save(ctupdate: bool)
 -- this post handles the messy details of registering a post's
 -- circles and actors, and increments the edit-count if ctupdate
 -- is true, which is should be in almost all cases.
	if ctupdate then
		self.chgcount = self.chgcount + 1
		self.edited = lib.osclock.time(nil)
	end
	self:comp()
	self.source:post_save(self)
end

return m