From 786609bd36c07b85dbf905fc8c36eba7132122d7 Mon Sep 17 00:00:00 2001 From: Jason A. Donenfeld Date: Mon, 13 Jan 2014 16:24:40 +0100 Subject: filter: add page source to email filter Since the email filter is called from lots of places, the script might benefit from knowing the origin. That way it can modify its contents and/or size depending. Signed-off-by: Jason A. Donenfeld --- ui-refs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ui-refs.c') diff --git a/ui-refs.c b/ui-refs.c index d125459..147b665 100644 --- a/ui-refs.c +++ b/ui-refs.c @@ -77,7 +77,7 @@ static int print_branch(struct refinfo *ref) if (ref->object->type == OBJ_COMMIT) { cgit_commit_link(info->subject, NULL, NULL, name, NULL, NULL, 0); html(""); - cgit_open_filter(ctx.repo->email_filter, info->author_email); + cgit_open_filter(ctx.repo->email_filter, info->author_email, "refs"); html_txt(info->author); cgit_close_filter(ctx.repo->email_filter); html(""); @@ -157,12 +157,12 @@ static int print_tag(struct refinfo *ref) html(""); if (info) { if (info->tagger) { - cgit_open_filter(ctx.repo->email_filter, info->tagger_email); + cgit_open_filter(ctx.repo->email_filter, info->tagger_email, "refs"); html_txt(info->tagger); cgit_close_filter(ctx.repo->email_filter); } } else if (ref->object->type == OBJ_COMMIT) { - cgit_open_filter(ctx.repo->email_filter, ref->commit->author_email); + cgit_open_filter(ctx.repo->email_filter, ref->commit->author_email, "refs"); html_txt(ref->commit->author); cgit_close_filter(ctx.repo->email_filter); } -- cgit v1.2.3-70-g09d2