mirror of
https://git.zx2c4.com/cgit
synced 2025-08-03 01:25:34 +02:00
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 <Jason@zx2c4.com>
This commit is contained in:
parent
e942a1622b
commit
786609bd36
8 changed files with 21 additions and 15 deletions
3
filter.c
3
filter.c
|
@ -406,6 +406,9 @@ struct cgit_filter *cgit_new_filter(const char *cmd, filter_type filtertype)
|
|||
|
||||
switch (filtertype) {
|
||||
case EMAIL:
|
||||
argument_count = 2;
|
||||
break;
|
||||
|
||||
case SOURCE:
|
||||
case ABOUT:
|
||||
argument_count = 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue