forked from indymedia/epicyon
				
			Move context for actor updates
							parent
							
								
									f17c601c88
								
							
						
					
					
						commit
						0a9fd492d3
					
				|  | @ -4520,7 +4520,12 @@ class PubServer(BaseHTTPRequestHandler): | ||||||
|                         pubStr = 'https://www.w3.org/ns/' + \ |                         pubStr = 'https://www.w3.org/ns/' + \ | ||||||
|                             'activitystreams#Public' |                             'activitystreams#Public' | ||||||
|                         pubNumber, pubDate = getStatusNumber() |                         pubNumber, pubDate = getStatusNumber() | ||||||
|  |                         pubContext = actorJson['@context'].copy() | ||||||
|  |                         # remove the context from the actor json and put it | ||||||
|  |                         # at the start of the Upgrade activity | ||||||
|  |                         del actorJson['@context'] | ||||||
|                         updateActorJson = { |                         updateActorJson = { | ||||||
|  |                             '@context': pubContext, | ||||||
|                             'id': actorJson['id'] + '#updates/' + pubNumber, |                             'id': actorJson['id'] + '#updates/' + pubNumber, | ||||||
|                             'type': 'Update', |                             'type': 'Update', | ||||||
|                             'actor': actorJson['id'], |                             'actor': actorJson['id'], | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue