@@ -162,6 +162,21 @@ func prepareUserProfileTabData(ctx *context.Context, showPrivate bool, profileDb
162162	}
163163	ctx .Data ["NumFollowing" ] =  numFollowing 
164164
165+ 	archived  :=  ctx .FormOptionalBool ("archived" )
166+ 	ctx .Data ["IsArchived" ] =  archived 
167+ 
168+ 	fork  :=  ctx .FormOptionalBool ("fork" )
169+ 	ctx .Data ["IsFork" ] =  fork 
170+ 
171+ 	mirror  :=  ctx .FormOptionalBool ("mirror" )
172+ 	ctx .Data ["IsMirror" ] =  mirror 
173+ 
174+ 	template  :=  ctx .FormOptionalBool ("template" )
175+ 	ctx .Data ["IsTemplate" ] =  template 
176+ 
177+ 	private  :=  ctx .FormOptionalBool ("private" )
178+ 	ctx .Data ["IsPrivate" ] =  private 
179+ 
165180	switch  tab  {
166181	case  "followers" :
167182		ctx .Data ["Cards" ] =  followers 
@@ -208,6 +223,11 @@ func prepareUserProfileTabData(ctx *context.Context, showPrivate bool, profileDb
208223			TopicOnly :          topicOnly ,
209224			Language :           language ,
210225			IncludeDescription : setting .UI .SearchRepoDescription ,
226+ 			Archived :           archived ,
227+ 			Fork :               fork ,
228+ 			Mirror :             mirror ,
229+ 			Template :           template ,
230+ 			IsPrivate :          private ,
211231		})
212232		if  err  !=  nil  {
213233			ctx .ServerError ("SearchRepository" , err )
@@ -230,6 +250,11 @@ func prepareUserProfileTabData(ctx *context.Context, showPrivate bool, profileDb
230250			TopicOnly :          topicOnly ,
231251			Language :           language ,
232252			IncludeDescription : setting .UI .SearchRepoDescription ,
253+ 			Archived :           archived ,
254+ 			Fork :               fork ,
255+ 			Mirror :             mirror ,
256+ 			Template :           template ,
257+ 			IsPrivate :          private ,
233258		})
234259		if  err  !=  nil  {
235260			ctx .ServerError ("SearchRepository" , err )
@@ -275,6 +300,11 @@ func prepareUserProfileTabData(ctx *context.Context, showPrivate bool, profileDb
275300			TopicOnly :          topicOnly ,
276301			Language :           language ,
277302			IncludeDescription : setting .UI .SearchRepoDescription ,
303+ 			Archived :           archived ,
304+ 			Fork :               fork ,
305+ 			Mirror :             mirror ,
306+ 			Template :           template ,
307+ 			IsPrivate :          private ,
278308		})
279309		if  err  !=  nil  {
280310			ctx .ServerError ("SearchRepository" , err )
0 commit comments